﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Framework.Sockets
{
    public interface IPerformanceAnalyzer
    {
        double OnRequestArrived(int protocol);

        double OnRequestArrived();

        bool DoNonDuplicateRequest();

        bool DoDuplicateRequest();

        int DoError();

        bool IsTimeout();

        bool IsHighFrequency();

        bool IsMaxError();


        double RequestInterval { get;}

        int ErrorTimes { get;}

        int RequestTimes { get;}

        DateTime CreateDate { get;}


        void Dispose();
    }
}
